package com.yjd.bi.gift.dao.impl;

import org.springframework.stereotype.Component;
import com.yjd.comm.base.dao.impl.BaseDaoImpl;
import com.yjd.bi.gift.model.GiftReceiveModel;
import com.yjd.bi.gift.dao.IGiftReceiveDao;

import java.util.Map;

/**
 * <b>description</b>：微信分享红包数据访问层 <br>
 * <b>time</b>：2016-12-16 13:27:40 <br>
 * <b>author</b>： ready likun_557@163.com
 */
@Component("giftReceiveDao")
public class GiftReceiveDaoImpl extends BaseDaoImpl implements IGiftReceiveDao {

	private static final String SQLMAPNAMESPACE = GiftReceiveModel.class.getName();
	private static final String PKNAME = "gift_receive_id";

	@Override
	public String getPrimaryKeyName() {
		return PKNAME;
	}

	@Override
	public String getSqlmapNamespace() {
		return SQLMAPNAMESPACE;
	}

	@Override
	public Integer getSummary(Map<String, Object> paramMap) throws Exception {
		return (Integer) this.getSqlMap(false).queryForObject(
				getStatement("getSummary"), paramMap);
	}
	
}
